package com.sjgs.gis.service.dto;

import io.swagger.annotations.ApiModel;


import java.io.Serializable;

/**
 * A DTO for the {@link com.sjgs.gis.domain.JdbcCluster} entity.
 */
@ApiModel(description = "Cluster entity.\n@author The JHipster team.")
public class JdbcClusterDTO implements Serializable {
    
    private Long id;


    private String name;


    private String version;


    private String driver;


    private String host;


    private Integer port;


    private String username;


    private String password;


    private String database;


    private String config;

    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof JdbcClusterDTO)) {
            return false;
        }

        return id != null && id.equals(((JdbcClusterDTO) o).id);
    }

    @Override
    public int hashCode() {
        return 31;
    }

    // prettier-ignore
    @Override
    public String toString() {
        return "JdbcClusterDTO{" +
            "id=" + getId() +
            ", name='" + getName() + "'" +
            ", version='" + getVersion() + "'" +
            ", driver='" + getDriver() + "'" +
            ", host='" + getHost() + "'" +
            ", port=" + getPort() +
            ", username='" + getUsername() + "'" +
            ", password='" + getPassword() + "'" +
            ", database='" + getDatabase() + "'" +
            ", config='" + getConfig() + "'" +
            "}";
    }
}
